package com.fable.dal.mapper;

import com.fable.dal.model.AdminUserDO;
import com.fable.dal.model.AdminUserQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for AdminUser.
 */
public interface AdminUserMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(AdminUserQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AdminUserQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AdminUserDO record);

    /**
     * insert selective.
     */
    int insertSelective(AdminUserDO record);

    /**
     * select by query condition.
     */
    List<AdminUserDO> selectByQuery(AdminUserQuery query);

    /**
     * select by primary key.
     */
    AdminUserDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") AdminUserDO record, @Param("query") AdminUserQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") AdminUserDO record, @Param("query") AdminUserQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AdminUserDO record);
}